package com.hopu.bean.shop;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CateViewTop3 implements Serializable, Comparable<CateViewTop3> {

    private String cid;
    private String cname;
    private String type;
    private int count;

    @Override
    public int compareTo(CateViewTop3 o) {
        return o.getCount() - this.getCount();
    }
}
